//
//  PublicCell.m
//  Courses
//
//  Created by xxx on 15/1/6.
//  Copyright (c) 2015年 wtf. All rights reserved.
//

#import "PublicCell.h"

//#import "UIImageView+WebCache.h"
//
////"courseId": "课程id",
////"courseName": "课程名称",
////"coursedescription":"课程介绍",
////"TeacherID":"讲师Id",
////"TeacherName":"讲师姓名",
////"TeacherTitle":"讲师抬头",
////"TeacherHeadPhotoUrl":"讲师头像url",
////"coursefavoritesNum": "1000",
////"courseViewNum": "1000",
//
@implementation PublicCell
//{
//    UILabel *_lblCourseName;
//    UILabel *_lblCourseDescription;
//    UILabel *_lblTeacherTitle;
//    UILabel *_lblFavoritesNum;
//    UILabel *_lblTeacherName;
//    UIImageView *_imgViewAvatar;
//    
//}
//
//- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
//{
//    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
//    if (!self) return self;
//    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
//    
//    self.backgroundColor = nil;
//    self.frame = AutoRectMake(0, 0, DEFAULT_WIDTH, 80, WTFAutoLayoutTypePic);
//    
//    _imgViewAvatar = [[UIImageView alloc] initWithFrame:AutoRectMake(10, 10, 80, 60, WTFAutoLayoutTypePic)];
//    [self.contentView addSubview:_imgViewAvatar];
//    
//    _lblTeacherName = [[UILabel alloc] initWithFrame:AutoRectMake(100, 10, 100, 20, WTFAutoLayoutTypeBar)];
//    _lblTeacherName.backgroundColor = [UIColor cyanColor];
//    [self.contentView addSubview:_lblTeacherName];
//    
//    _lblTeacherTitle = [[UILabel alloc] initWithFrame:AutoRectMake(160, 10, 100, 20, WTFAutoLayoutTypeBar)];
//    _lblTeacherTitle.backgroundColor = [UIColor blueColor];
//    [self.contentView addSubview:_lblTeacherTitle];
//    
//    _lblCourseName = [[UILabel alloc] initWithFrame:AutoRectMake(100, 30, 300, 20, WTFAutoLayoutTypeBar)];
//    _lblCourseName.backgroundColor = [UIColor greenColor];
//    [self.contentView addSubview:_lblCourseName];
//    
//    return self;
//}
//
//- (void)setCourse:(PublicCourse *)course
//{
//    _lblCourseName.text = course.courseName;
//    _lblTeacherTitle.text = course.teacherTitle;
//    _lblTeacherName.text = course.teacherName;
//    _lblFavoritesNum.text = course.coursefavoritesNum;
//    [_imgViewAvatar sd_setImageWithURL:[NSURL URLWithString:course.teacherHeadPhotoUrl]];
//}

@end
